##parameters=modelidentitylist=[]
if modelidentitylist==[]:
    return

securityService = context.knowledgeengine_securityservice
allmodels = securityService.getModels()

orderedmodels=[]
for modelidentity in modelidentitylist:
    for model in allmodels:
        if model.getIdentity() == modelidentity:
            orderedmodels.append(model)

return orderedmodels
